home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ssssyyyysssstttteeeemmmm((((3333SSSS)))) ssssyyyysssstttteeeemmmm((((3333SSSS))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ssss_yyyy_ssss_tttt_eeee_mmmm - issue a shell command
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_dddd_llll_iiii_bbbb_...._hhhh_>>>>
-
- _iiii_nnnn_tttt _ssss_yyyy_ssss_tttt_eeee_mmmm _((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_ssss_tttt_rrrr_iiii_nnnn_gggg_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _ssss_yyyy_ssss_tttt_eeee_mmmm causes the _s_t_r_i_n_g to be given to the shell [see _ssss_hhhh(1)] as input,
- as if the string had been typed as a command at a terminal. The current
- process waits until the shell has completed, then returns the exit status
- of the shell in the format specified by _wwww_aaaa_iiii_tttt_pppp_iiii_dddd(2). The _ssss_yyyy_ssss_tttt_eeee_mmmm function
- ignores the SIGINT and SIGQUIT signals, and blocks the SIGCHLD signal,
- while waiting for the command to terminate.
-
- If _s_t_r_i_n_g is a _NNNN_UUUU_LLLL_LLLL pointer, _ssss_yyyy_ssss_tttt_eeee_mmmm checks if _////_ssss_bbbb_iiii_nnnn_////_ssss_hhhh exists and is
- executable. If _////_ssss_bbbb_iiii_nnnn_////_ssss_hhhh is available, _ssss_yyyy_ssss_tttt_eeee_mmmm returns non-zero; otherwise
- it returns zero.
-
- _ssss_yyyy_ssss_tttt_eeee_mmmm fails if one or more of the following are true:
-
- _EEEE_AAAA_GGGG_AAAA_IIII_NNNN The system-imposed limit on the total number of processes
- under execution by a single user would be exceeded.
-
- _EEEE_IIII_NNNN_TTTT_RRRR _ssss_yyyy_ssss_tttt_eeee_mmmm was interrupted by a signal.
-
- _EEEE_NNNN_OOOO_MMMM_EEEE_MMMM The new process requires more memory than is allowed by the
- system-imposed maximum _MMMM_AAAA_XXXX_MMMM_EEEE_MMMM.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _eeee_xxxx_eeee_cccc(2), _wwww_aaaa_iiii_tttt_pppp_iiii_dddd(2), _ssss_hhhh(1).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _ssss_yyyy_ssss_tttt_eeee_mmmm forks to create a child process that in turn execs _////_ssss_bbbb_iiii_nnnn_////_ssss_hhhh in
- order to execute _s_t_r_i_n_g. If the fork or exec fails, _ssss_yyyy_ssss_tttt_eeee_mmmm returns -1
- and sets _eeee_rrrr_rrrr_nnnn_oooo.
-
- NNNNOOOOTTTTEEEESSSS
- Calling _ssss_yyyy_ssss_tttt_eeee_mmmm(3S) in a program that is set user ID to _rrrr_oooo_oooo_tttt is difficult
- to do without creating unintended security problems. For example, since
- _ssss_yyyy_ssss_tttt_eeee_mmmm invokes a copy of _ssss_hhhh(1) to execute the supplied command, the
- programmer must be extremely careful not to allow critical environment
- variables, such as _PPPP_AAAA_TTTT_HHHH, which determine the behavior of the shell to be
- passed through from the environment of the invoking user without
- modification. It is recommended that _ssss_yyyy_ssss_tttt_eeee_mmmm(3S) not be used by set user
- ID programs.
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-